update README again

Andrew Cantino 11 年之前
父节点
当前提交
65891676de
共有 1 个文件被更改,包括 32 次插入7 次删除
  1. 32 7
      README.md

+ 32 - 7
README.md

@@ -2,7 +2,7 @@
2 2
 
3 3
 ## What is Huginn?
4 4
 
5
-Huginn is a system for building agents that perform automated tasks for you online.  They can read the web, watch for events, and take actions on your behalf.  Huginn's Agents create and consume events.  It's a tool that makes it easy to monitor data sources and have actions take place when certain events occur.
5
+Huginn is a system for building agents that perform automated tasks for you online.  They can read the web, watch for events, and take actions on your behalf.  Huginn's Agents create and consume events, propogating events along a directed event flow graph.  Think of it as Yahoo! Pipes plus ITTT, on your own server.  You run Huginn on our own server, so you always know who has your data.  You do.
6 6
 
7 7
 ![the origin of the name](doc/imgs/the-name.png)
8 8
 
@@ -15,8 +15,6 @@ Huginn is a system for building agents that perform automated tasks for you onli
15 15
 * Scrape websites and receive email when they change
16 16
 * Track your location over time
17 17
 
18
-You run Huginn on our own server, so you always know who has your data.  You do.
19
-
20 18
 ## Examples
21 19
 
22 20
 And now, some example screenshots.  Below them are instructions to get you started.
@@ -33,11 +31,35 @@ And now, some example screenshots.  Below them are instructions to get you start
33 31
 
34 32
 ## Getting Started
35 33
 
36
-* Make a private fork of this repository on GitHub.
37
-* In your fork, edit `config/secret_token.rb` and replace `REPLACE_ME_NOW!` with the output of `rake secret`.
38
-* Edit `app/models/user.rb` and change the invitation code(s) in `INVITATION_CODES`.  This controls who can signup to use your installation.
39
-* Run `rake db:create`, `rake db:migrate`, and then `rake db:seed` to create a development MySQL database with some example seed data.  Run `rails s`, visit `localhost:3000`, and login with the username of `admin` and the password of `password`.
34
+### Quick Start
35
+
36
+If you just want to play around, you can simply checkout this repository, then do the following steps:
37
+
38
+* Edit `config/secret_token.rb` and replace `REPLACE_ME_NOW!` with the output of `rake secret`.
39
+* Run `rake db:create`, `rake db:migrate`, and then `rake db:seed` to create a development MySQL database with some example seed data.  Run `rails s`, visit `http://localhost:3000`, and login with the username of `admin` and the password of `password`.
40 40
 * Make some extra Terminal windows and run `bundle exec rails runner bin/schedule.rb` and `bundle exec rails runner bin/twitter_stream.rb`
41
+* Setup some Agents!
42
+
43
+### Real Setup
44
+
45
+Follow these instructions if you wish to deploy your own version of Huginn or to contribute back to the project.  GitHub doesn't make it easy to work with private forks of public repositories, so we recommend that you follow the following steps:
46
+
47
+* Make a public fork of Huginn
48
+* Make a private, empty GitHub repository called `huginn-private`
49
+* Duplicate your public fork into your new private repository (via [GitHub's instructions](https://help.github.com/articles/duplicating-a-repository)):
50
+
51
+      git clone --bare git@github.com:you/huginn.git
52
+      cd huginn.git
53
+      git push --mirror git@github.com:you/huginn-private.git
54
+      cd .. && rm -rf huginn.git
55
+
56
+* Checkout your new private repository.
57
+* Add your Huginn public fork as a remote to your new private repository (`huginn-private`):
58
+
59
+      git remote add public git@github.com:you/huginn.git
60
+
61
+* Run the steps from *Quick Start* above to configure your copy of Huginn.
62
+* When you want to contribute patches, do a remote push from your private repository to your public fork, then make a pull request to us.
41 63
 
42 64
 ## Deployment
43 65
 
@@ -45,6 +67,9 @@ Deployment right now is configured with Capistrano, Unicorn, and nginx.  You sho
45 67
 
46 68
 ### Required Setup
47 69
 
70
+In your private copy of Huginn, do the following:
71
+
72
+* Edit `app/models/user.rb` and change the invitation code(s) in `INVITATION_CODES`.  This controls who can signup to use your installation.
48 73
 * Edit `app/mailers/system_mailer.rb` and set your default from address.
49 74
 * Edit `config/unicorn/production.rb` and replace instances of *you* with the correct username for your server.
50 75
 * Edit `config/environments/production.rb` and change the value of `DOMAIN` and the `config.action_mailer.smtp_settings` setup, which is currently setup for sending email through a Google Apps account on Gmail.